    import request from '../utils/request'

export const getContentList = () => {
  return request({
    url: `/travel/content/list`,
    method: 'get',
  });
};

export const updateContentById = (id,data) => {
  return request({
    url: `/travel/content/update/${id}`,
    method: 'put',
    data:data
  });
};
export const getCarouselList = () => {
  return request({
    url: `/travel/carousel/list`,
    method: 'get',
  });
};
export const addCarousel = (data) => {
  return request({
    url: `/travel/carousel/add`,
    method: 'post',
    data:data
  });
};

export const delCarouselById = (id) => {
  return request({
    url: `/travel/carousel/delete/${id}`,
    method: 'delete'
  });
};
export const updateCarouselById = (id,data) => {
  return request({
    url: `/travel/carousel/update/${id}`,
    method: 'put',
    data:data
  });
};